package com.luckdraw;

import org.nutz.mvc.annotation.ChainBy;
import org.nutz.mvc.annotation.Encoding;
import org.nutz.mvc.annotation.Fail;
import org.nutz.mvc.annotation.IocBy;
import org.nutz.mvc.annotation.Modules;
import org.nutz.mvc.annotation.Ok;
import org.nutz.mvc.annotation.SetupBy;
import org.nutz.mvc.ioc.provider.ComboIocProvider;

@SetupBy(value=MainSetup.class)
@IocBy(type=ComboIocProvider.class, args={"*js", "ioc/",
    "*anno", "com.luckdraw",
    "*tx"}) // 事务拦截 aop
@Modules(scanPackage=true)
@Ok("json:{dateFormat:'yyyy-MM-dd HH:mm:ss'}")
@Fail("jsp:page.error.500")
@Encoding(input = "UTF-8", output = "UTF-8")
@ChainBy(args="mvc/mvc-chain.js")
public class MainModule {

}
